From: Florian Müllner Date: Fri, 20 Jul 2018 18:51:40 +0000 (+0200) Subject: overviewControls: Sync hover after drag operations X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~929^2~3^2~10 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=328c63bf64ef13f477156db2ae1c657957259130;p=gnome-shell.git overviewControls: Sync hover after drag operations During global grabs, actors miss enter and leave events required for correct hover tracking. This can cause the workspace switcher to get stuck while slid out, so ensure the actor's hover state is synced after drag operations. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/161 --- diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index a2905abb9..1b1c9cf10 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -284,6 +284,11 @@ var ThumbnailsSlider = new Lang.Class({ return child.get_theme_node().get_length('visible-width'); }, + _onDragEnd() { + this.actor.sync_hover(); + this.parent(); + }, + _getSlide() { if (!this._visible) return 0;